<template>
  <div class="wrapper">
    <header>
      <h2>淘宝带货</h2>
      <el-button class="logout" type="success" @click="logout"
        >退出登录</el-button
      >
    </header>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {};
  },
  watch: {},
  computed: {},
  methods: {
    logout() {
      this.$confirm("是否要退出当前账号?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "退出成功!"
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消"
          });
        });
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
header {
  height: 60px;
  line-height: 60px;
  background-color: #515a6e;
  color: #cccccc;
  padding: 0 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .logout {
    height: 40px;
  }
}
</style>
